<!DOCTYPE html>
<html lang="en" class="no-js" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" layout:decorator="layout">
<head>
<title>积分商城管理</title>
</head>
<body>
<div layout:fragment="content">
     <div class="row">
        <div class="table-toolbar col-md-12">
            <form class="form-inline" th:action="@{/promotion/goods/list}" th:object="${creditGoodsSearch}"  method="post" id="form_submit">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="名称" th:field="*{name}" />
                </div>
                <div class="form-group">
                    <input type="text" id="text_startDate" class="form-control" placeholder="开始时间" th:field="*{startDate}" />
                </div>
                <div class="form-group">
                    <input type="text" id="text_endDate" class="form-control" placeholder="结束时间" th:field="*{endDate}"/>
                </div>
                <div class="form-group">
                    <select id="select_status" th:field="*{status}" class="form-control">
                        <option value="0">所有状态</option>
                        <option th:each="status : ${statusValues}" th:value="${status.description}" th:text="${status.description}"></option>
					</select>
                </div>
                <div class="form-group">
                    <button type="submit" id="btn_search" class="btn green" ><i class="fa  fa-search"></i></button>
                </div>
                <div class="btn-group pull-right">
					<a href="edit.html" th:href="@{/promotion/goods/add}" id="sample_editable_1_new" class="btn green">添加积分活动<i class="fa fa-plus"></i></a>
				</div>
            </form>

        </div>
    </div>
	<div class="row">
		<div class="col-md-12">
			<div th:include="promotion/goods/creditGoods_table" id="creditGoods_grid">
		
			</div>
		</div>
	</div>
</div>	
</body>
</html>

<script th:inline="javascript">
    /*<![CDATA[*/
    $("#text_startDate").click(function () {
        WdatePicker({startTime: '%y-%M-01 00:00:00', dateFmt: 'yyyy-MM-dd', alwaysUseStartDate: true, readOnly: true});
    }).focus(function () {
        WdatePicker({startTime: '%y-%M-01 00:00:00', dateFmt: 'yyyy-MM-dd', alwaysUseStartDate: true, readOnly: true});
    });
    $("#text_endDate").click(function () {
        WdatePicker({endTime: '%y-%M-01 00:00:00', dateFmt: 'yyyy-MM-dd', alwaysUseStartDate: true, readOnly: true});
    }).focus(function () {
        WdatePicker({endTime: '%y-%M-01 00:00:00', dateFmt: 'yyyy-MM-dd', alwaysUseStartDate: true, readOnly: true});
    });
    /*]]>*/
</script>